import request from "@/utils/request"

export function getCarts(params){
    return request({
        url:"/cart",
        params
    })
}

export function addCart(data){
    return request({
        url:"/cart/add",
        method:"post",
        data
    })
}

export function eidtCart(data){
    return request({
        url:"/cart/edit",
        method:"post",
        data
    })
}

export function delCart(data){
    return request({
        url:"/cart/delete",
        method:"post",
        data
    })
}

export function updateState(data){
    return request({
        url:"/cart/updateStatus",
        method:"post",
        data
    })
}